<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Arrays"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + request.getContextPath() + "/";

    String year = new SimpleDateFormat("yyyy").format(new Date());

    pageContext.setAttribute("webName", application.getInitParameter("webName"));
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<title>${webName}</title>

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/index.css">

</head>
<body>

	<!-- 页面容器，最小宽度1200px -->
	<div class="container">

		<!-- 顶部，显示LOGO，登录的用户和实时报时 -->
		<div class="header">

			<!-- 显示LOGO -->
			<div class="logo">

				<a href="index.jsp"> <img src="images/logo-min.gif">
				</a>

			</div>

			<!-- 显示登录用户和问候语 -->
			<span class="showUser">欢迎<span class="name">${name}</span>使用${webName}
			</span>

			<!-- 显示时间信息 -->
			<span class="showTime" id="showTime">loading</span> <span
				class="showDate" id="showDate"></span>

		</div>

		<!-- 系统主要部分，左边显示功能菜单，右边显示功能操作界面 -->
		<div class="main">

			<!-- 左边功能菜单 -->
			<div class="menu">

				<!-- 显示标题 -->
				<div class="title">功能列表</div>

				<!-- 显示功能列表 -->
				<div class="list">

					<ul class="ul-1">




						<li class="item-1" ul_id="list-2"><img src="images/ico/2.gif" />
							<span>文档管理</span></li>

						<ul id="list-2" class="ul-2">
							<li class="item-2" url="document/add-document-menu.jsp"><img
								src="images/ico/ad1.png" /> <span>发布文档</span></li>

							<li class="item-2" url="document/my-document-menu.jsp"><img
								src="images/ico/ad1.png" /> <span>我的文档</span></li>
							<li style="${type==1?" display: none;":""}"  class="item-2"
								url=""><img src="images/ico/ad1.png" /> <span>审核文档</span></li>
						</ul>

						<li class="item-1" ul_id="list-3"><img src="images/ico/2.gif" />
							<span>员工管理</span></li>

						<ul id="list-3" class="ul-2">
							<li style="${type==1?" display: none;":""}" class="item-2"
								url="user/add-user.jsp"><img src="images/ico/ad1.png" /> <span>增加用户</span></li>
							<li class="item-2" url="user/find-user_name.jsp"><img
								src="images/ico/ad1.png" /> <span>用户名查询</span></li>
							<li class="item-2" url="UserList"><img
								src="images/ico/ad1.png" /> <span>用户列表</span></li>
						</ul>

						<li class="item-1" ul_id="list-4"><img src="images/ico/2.gif" />
							<span>个人中心</span></li>

						<ul id="list-4" class="ul-2">
							<li class="item-2" url="UpdateMyData"><img
								src="images/ico/ad1.png" /> <span>编辑资料</span></li>
							<li class="item-2" url="user/update-password.jsp"><img
								src="images/ico/ad1.png" /> <span>修改密码</span></li>
							<a style="text-decoration: none;"
								onclick='return confirm("你确定要退出系统吗？")' href="Logout"><li
								class="item-2"><img src="images/ico/ad1.png" /> <span>退出系统</span></li></a>
						</ul>

					</ul>

				</div>

			</div>

			<!-- 右边功能操作框架 -->
			<iframe class="operation-iframe" id="operation-iframe"
				src="document/my-document-menu.jsp"></iframe>

		</div>

		<!-- 显示版权部分 -->
		<div class="copyRight">
			<p>



				版权所有 &#169; 2017-<%=year%>
				<a href="index.jsp">${webName}</a>，All Rights Reserved.
			</p>
		</div>
	</div>


	<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="js/admin-index.js"></script>

</body>
</html>